package orm

import "github.com/beego/beego/v2/client/orm"

type BaseOrm struct {
}

func (this BaseOrm) GetOrm() orm.Ormer {
	o := orm.NewOrm()
	return o
}
func (this BaseOrm) Insert(model interface{}) (int64, error) {
	return this.GetOrm().Insert(model)
}
func (this BaseOrm) Update(model interface{}) (int64, error) {
	return this.GetOrm().Update(model)
}
func (this BaseOrm) Remove(model interface{}) (int64, error) {
	return this.GetOrm().Delete(model)
}
